<%--
  Created by IntelliJ IDEA.
  User: Shinelon
  Date: 2017/6/18
  Time: 17:09
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%
    String path = request.getContextPath();
    String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <link rel="stylesheet" href="<%=path%>/css/bootstrap.css">
    <link rel="stylesheet" href="<%=path%>/css/common.css">
</head>
<body>

<!--head-->
<div id="header">
    <div class="container">
        <h1>报销管理系统</h1>
    </div>
</div>

<!--发票-->
<div id="second-header">
    <div class="container">
        <div class="row">
            <div class="col-sm-3">
                <form action="/demo/budget/budget" method="post">
                    <button class="btn btn-danger btn-block" type="submit" id="" >项目预算表</button>
                </form>
            </div>
            <div class="col-sm-3">
                <form action="/demo/budget/checktotalbills" method="post">
                    <button class="btn btn-danger btn-block" type="submit" id="" >审核报销汇总单</button>
                </form>
            </div>
            <div class="col-sm-3">
                <form action="/demo/budget/checktripbills" method="post">
                    <button class="btn btn-danger btn-block" type="submit" id="" >审核出差报销单</button>
                </form>
            </div>
        </div>
    </div>
</div>

<!--1-->
<div class="container" id="content">
    <c:if test = "${not empty bud}">
        <table class="table table-bordered">
            <tr  colspan="5">项目预算表</tr>
            <tr>
                <td>编号</td>
                <td>项目名称</td>
                <td>经费预算金额</td>
                <td colspan="2">操作</td>
            </tr>
            <c:forEach items="${bud}" var="budget">
                <tr>
                    <td>${budget.buid}</td>
                    <td>${budget.buname}</td>
                    <td>${budget.amount}</td>
                    <td><a href="/demo/budget/edit/${budget.buid}"></a></td>
                    <td><a href="/demo/budget/delete/${budget.buid}"></a></td>
                    <td></td>
                </tr>
            </c:forEach>
        </table>
    </c:if>
</div>

</body>
</html>
